package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHouseOrientationMapper;
import com.ruoyi.system.domain.HyHouseOrientation;
import com.ruoyi.system.service.IHyHouseOrientationService;

/**
 * 房屋朝向Service业务层处理
 * 
 * @author wangjiangbo
 * @date 2025-01-10
 */
@Service
public class HyHouseOrientationServiceImpl implements IHyHouseOrientationService 
{
    @Autowired
    private HyHouseOrientationMapper hyHouseOrientationMapper;

    /**
     * 查询房屋朝向
     * 
     * @param id 房屋朝向主键
     * @return 房屋朝向
     */
    @Override
    public HyHouseOrientation selectHyHouseOrientationById(Long id)
    {
        return hyHouseOrientationMapper.selectHyHouseOrientationById(id);
    }

    /**
     * 查询房屋朝向列表
     * 
     * @param hyHouseOrientation 房屋朝向
     * @return 房屋朝向
     */
    @Override
    public List<HyHouseOrientation> selectHyHouseOrientationList(HyHouseOrientation hyHouseOrientation)
    {
        return hyHouseOrientationMapper.selectHyHouseOrientationList(hyHouseOrientation);
    }

    /**
     * 新增房屋朝向
     * 
     * @param hyHouseOrientation 房屋朝向
     * @return 结果
     */
    @Override
    public int insertHyHouseOrientation(HyHouseOrientation hyHouseOrientation)
    {
        return hyHouseOrientationMapper.insertHyHouseOrientation(hyHouseOrientation);
    }

    /**
     * 修改房屋朝向
     * 
     * @param hyHouseOrientation 房屋朝向
     * @return 结果
     */
    @Override
    public int updateHyHouseOrientation(HyHouseOrientation hyHouseOrientation)
    {
        return hyHouseOrientationMapper.updateHyHouseOrientation(hyHouseOrientation);
    }

    /**
     * 批量删除房屋朝向
     * 
     * @param ids 需要删除的房屋朝向主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseOrientationByIds(Long[] ids)
    {
        return hyHouseOrientationMapper.deleteHyHouseOrientationByIds(ids);
    }

    /**
     * 删除房屋朝向信息
     * 
     * @param id 房屋朝向主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseOrientationById(Long id)
    {
        return hyHouseOrientationMapper.deleteHyHouseOrientationById(id);
    }
}
